BaliFantastico::Application.routes.draw do

  resources :transport_types
  resources :transport_packages
  resources :transports
  resources :transport_images

  resources :hotel_room_types do
    collection do
      delete 'destroy_multiple'
      get 'room_facility_list'
      post 'room_facility_selected'
    end
  end

  resources :hotels do
    collection do
      delete 'destroy_multiple'
      get 'facility_list'
      post 'facility_selected'
    end
  end

  resources :hotel_images do
    collection do
      delete 'destroy_multiple'
    end
  end

  resources :hotel_room_type_images do
    collection do
      delete 'destroy_multiple'
    end
  end

  match 'login' => 'sessions#new', :as => 'login'
  match 'logout' => 'sessions#destroy', :as => 'logout'
  match 'sessions/create' => 'sessions#create', :as => 'create'
  get "sessions/destroy"
  get "admin" => "admin#index", :as => "admin"
  get "pages/index"
  get "pages/hotel_index"
  
  get "test" => "pages#test", :as => "test"
  get "hotel_detail" => "pages#hotel_detail", :as => "hotel_detail"
  get "tours_package" => "pages#tour_index", :as => "tours_package"
  get "tour_detail" => "pages#tour_detail", :as => "tour_detail"
  get "tour_detail" => "pages#tour_detail", :as => "tour_detail"
  get "transport_package" => "pages#transport_index", :as => "transport_package"
  get "transport_detail" => "pages#transport_detail", :as => "transport_detail"

  get "hotel_ticket" => "hotel_ticket#index", :as => "hotel_ticket" 
  get "hotel_autocomplete" => "hotel_ticket#autocomplete", :as => "hotel_autocomplete" 
  get "hotel_search" => "hotel_ticket#hotel_search", :as => "hotel_search" 
  get "hotel_ticket_detail" => "hotel_ticket#hotel_ticket_detail", :as => "hotel_ticket_detail" 
  get "show_room_facility" => "hotel_ticket#show_room_facility", :as => "show_room_facility"
  get "hotel_order" => "hotel_ticket#hotel_order", :as => "hotel_order" 
  get "add_room_ticket" => "hotel_ticket#add_room", :as => "add_room_ticket" 
  get "del_hotel_order" => "hotel_ticket#del_order", :as => "del_hotel_order" 
  get "hotel_checkout" => "hotel_ticket#checkout", :as => "hotel_checkout"
  get "hotel_customer_checkout" => "hotel_ticket#hotel_customer_checkout", :as => "hotel_customer_checkout"
  get "customer_checkout" => "hotel_ticket#hotel_customer_checkout", :as => "customer_checkout"
  get "hotel_payment" => "hotel_ticket#hotel_payment", :as => "hotel_payment"


  resources :tour_types
  resources :tour_day_images
  resources :tour_days
  resources :tour_images
  resources :tours
  resources :room_facilities
  resources :users
  resources :payment_types
  resources :statuses
  resources :districts
  resources :facilities
  resources :provinces
  resources :property_types
  resources :areas
  resources :countries
  resources :images
  resources :hotel_transactions
  
  
  root :to => 'pages#hotel_index'
end
